#ifndef PREVIEWHTMLWIDGET_H
#define PREVIEWHTMLWIDGET_H

#include <QToolButton>
#include <QTextBrowser>
#include <QTextDocument>
#include <QCloseEvent>
#include <QSettings>
#include <QPrinter>
#include <QPrintDialog>
#include <QStyle>
#include <QDir>
#include <QFileDialog>
#include <QPixmapCache>
#include <QSplashScreen>
#include "ui_previewhtmlwidget.h"

class PreviewHTMLWidget : public QWidget, private Ui::PreviewHTMLWidget
{
Q_OBJECT

public:

PreviewHTMLWidget();
~PreviewHTMLWidget();

public slots:

void set_text( QString & text);
void print_file();
void print_pdf();

signals:

private:

void writeSettings();
void readSettings();
QPixmap create_splash_image();

protected:

void closeEvent( QCloseEvent * e );

};

#endif // PREVIEWHTMLWIDGET_H
